package org.telegram.bot.domain;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.utils.sign.Base64;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @Author: wyx
 * @Date: 2024/11/22 12:28
 */
@Data
@Accessors(chain = true)
public class BotStartApp implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private String router;
    private Long botId;
    private Long chatId;
    private Long userId;
    
    @Override
    public String toString() {
        return Base64.encode(JSONObject.toJSONString(this).getBytes());
    }
}
